/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 评论回复Entity
 * @author 罗天文
 * @version 2018-07-02
 */
public class HkAdvCommentReply extends DataEntity<HkAdvCommentReply> {
	
	private static final long serialVersionUID = 1L;
	private String state;		// 状态
	private HkAllAdv source;		// 源id
	private HkUser user;		// 用户id
	private String content;		// 内容
	private HkUser replyUser;		// 回复人id
	private String commentId;		// 评论id
	
	public HkAdvCommentReply() {
		super();
	}

	public HkAdvCommentReply(String id){
		super(id);
	}

	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=200, message="内容长度必须介于 0 和 200 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public HkUser getReplyUser() {
		return replyUser;
	}

	public void setReplyUser(HkUser replyUser) {
		this.replyUser = replyUser;
	}
	
	@Length(min=0, max=32, message="评论id长度必须介于 0 和 32 之间")
	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}
	
}